/**
 * 用户收藏和取消收藏
*/
import request from "@/utils/request";

export const addCollect = target => request({
    method:'POST',
    url:'/v1_0/article/collections',
    data:{
        target,
    }
})

export const deleteCollect = (target) => request({
    method:'DELETE',
    url:`/v1_0/article/collections/${target}`
})




/**
 * 用户点赞和取消点赞
*/

export const addLike = target => request({
    method:'POST',
    url:'/v1_0/article/likings',
    data:{
        target,
    }
})

export const deleteLike = target => request({
    method:'DELETE',
    url:`/v1_0/article/likings/${target}`
})